<%-- 
    Document   : xoamonthi
    Created on : Sep 20, 2012, 3:01:54 AM
    Author     : Odotube
--%>

<%@page import="thitracnghiem.GiaoVien"%>
<%@page import="thitracnghiem.MonThi"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%@include file="/menuad.html"%>
        <%
            session = request.getSession();
             GiaoVien gv = (GiaoVien) session.getAttribute("gv");
             if (gv == null) {
             response.sendError(403);
             return;
             } else if(!gv.getUsername().equals("admin")){
             response.sendError(403);
             return;
             }
            String s = "";
            s = request.getParameter("tb");
            if (s == null) {
                s = "";
            }
            out.println(s);
            MonThi.Open();
            StringBuilder ms = MonThi.getViewDSMonThi(gv.getPhanQuyenMon());
            MonThi.Close();
            out.println(ms);
        %>
    </body>
</html>
